X= rand(100,2);
Y= pdist(X);
Z= linkage(Y)
[H,T] = dendrogram(Z,'colorthreshold','default');